﻿<!DOCTYPE html>
<html lang="en">
<head>
<base href="${basePath}">
  <#include "/system/index/top.html"/>
</head>
<body>
<div class="searchContent">
	<form class="layui-form" action="${basePath}system/user/getSysUserLoglistPage" method="post" name="userForm" id="userForm">
		<div class="layui-form-item">
			<label class="layui-form-label">关键字搜索：</label>
			<div class="layui-input-inline">
			  <input type="text" name="keywords" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
			</div>
			<input type="button" value="查询" onclick="searchs();" class="layui-btn layui-btn-red"/>
			<input type="button" value="新增" onclick="editUser('')" class="layui-btn layui-btn-red"/>
		</div>
		<table class="layui-table">
			<thead>
				<tr>
					<th>用户名</th>
					<th>操作类型</th>
					<th>时间</th>
					<th>内容</th>
				</tr>
			</thead>
			<tbody>
			<#list logList?if_exists as var>
				<tr>
					<td>${var.userName}</td>
					<td>${var.logType}</td>
					<td>${(var.createDate?string('yyyy-MM-dd  HH:mm:ss'))!}</td>
					<td>${var.operation}</td>

				</tr>
			</#list>
			</tbody>
		</table>
	</form>
	<#if "${logList?has_content}">
		<#include "/common/page.html" />
		<@shiro.hasPermission name="UserDelete">
            <input type="button" value="删除" onclick="getselectid();" class="layui-btn layui-btn-red layui-btn-mini" style="margin-top: -4px;"/>
		 </@shiro.hasPermission>
		<#else>
			<div class="nullBox"><img src="${basePath}static\images\kong.png" alt="没找到相关数据" width="450" height="450">
				<b class="nulltext">没找到相关数据,修改搜索条件试试...</b>
			</div>
	</#if>
</div>
</body>
<script type="text/javascript">
	//检索
	function searchs() {
		$("#userForm").submit();
	}


</script>
</html>
